package com.telit.android.constant;

import java.text.MessageFormat;
import java.text.SimpleDateFormat;
import java.util.Date;


/**
 * @Auther amy
 * @Describe
 */
public class TaskMsgConstants {

    /** 日常任务巡护标题 **/
    public static final String TASK_TITLE_PATROL_NORMAL_TEMPLATE = "{0} 【{1}】【第{2}次】日常巡护任务";

    public static final String TASK_TITLE_CRUISE_NORMAL_TEMPLATE = "{0} 【{1}】【第{2}次】日常巡航任务";

    /** 日常任务巡护内容 **/
    public static final String TASK_CONTENT_PATROL__NORMAL_TEMPLATE = "执行日常巡护任务,上报火情,上报火情隐患,盗捕滥猎,乱砍滥伐,侵占林地,林草病虫害等事件,通过任务反馈进行日常巡护任务记录!";
    public static final String TASK_CONTENT_CRUISE_NORMAL_TEMPLATE = "执行日常巡航任务,上报火情,上报火情隐患,盗捕滥猎,乱砍滥伐,侵占林地,林草病虫害等事件,通过任务反馈进行日常巡航任务记录!";

    public static String getTitleNormal(String template,Date date,String realname,int times){
        SimpleDateFormat df = new SimpleDateFormat("yyyy年MM月dd日");
        return MessageFormat.format(template,df.format(date),realname,times);
    }
}
